home *** CD-ROM | disk | FTP | other *** search
- global gEmptySprite, gEmptySpriteBis
-
- on startMovie
- gEmptySpriteBis = 47
- gEmptySprite = 48
- testSprite = 4
- puppetSprite(gEmptySprite, 1)
- puppetSprite(gEmptySpriteBis, 1)
- audioPath = the moviePath & "audio"
- add(the searchPaths, audioPath)
- end
-
- on idle
- mCast = the mouseCast
- if mCast > 0 then
- checkCursor(mCast)
- CheckHilite(mCast)
- else
- Unhilite()
- cursor(-1)
- end if
- end
-
- on Unhilite
- set the member of sprite gEmptySprite to member("EMPTY SPRITE")
- set the member of sprite gEmptySpriteBis to member("EMPTY SPRITE")
- end
-
- on checkCursor mCast
- case word 1 of the name of member mCast of
- "#":
- cursor([4, 5])
- "*":
- cursor([6, 7])
- otherwise:
- cursor(-1)
- end case
- end
-
- on CheckHilite mCast
- case word 2 of the name of member mCast of
- "$":
- set the member of sprite gEmptySprite to mCast + 1
- "*":
- set the member of sprite gEmptySprite to mCast + 1
- set the member of sprite gEmptySpriteBis to mCast + 2
- "#":
- set the member of sprite gEmptySprite to mCast - 5
- "@":
- nothing()
- otherwise:
- Unhilite()
- end case
- end
-
- on DoUPDOwn
- set the member of sprite gEmptySprite to member(the memberNum of sprite the clickOn + 1)
- updateStage()
- repeat while the mouseDown
- end repeat
- end
-